export default {
	data() {
		return {
			share: {
				title: 'huntaway小程序',
				imageUrl: '../../static/images/QRcode-applet.jpg',//图片大小建议500*400
			}
		}
	},
	onShareAppMessage(res) { //发送给朋友
		return {
			title: this.share.title,
			imageUrl: this.share.imageUrl,
			path: "/pages/index/login",//分享默认打开是小程序首页
			success(res){
			    uni.showToast({
			        title:'分享成功'
			    })
			},
			fail(res){
			    uni.showToast({
			        title:'分享失败',
			        icon:'none'
			    })
			}
		}
	},
	onShareTimeline(res) { //分享到朋友圈
		return {
			title: this.share.title,
			imageUrl: this.share.imageUrl,
			path: "/pages/index/login"	//分享默认打开是小程序首页
		}
	},
}